<%= javascript_include_tag "prototype", "effects", "controls", "window", "application","dragdrop"%>
<%= stylesheet_link_tag "main", :media => "all" %>
</br>
<fieldset style="width:350;border:2px groove;" align="center"><legend
	align="center">
<span class="medgary"><strong><% if flash[:notice] -%> <%= flash[:notice] %><%else -%>修改密码<% end -%></strong></span>
</legend>
<table border="0" cellpadding="0" cellspacing="0" class="medblack"
	align="center" width="300">
	<%= form_tag :controller=>"view",:action =>'updatepassword' %>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td width="150" align="center">
		<li>输入旧的密码：</li>
		</td>
		<td><%= password_field "user", "old_password",:size=>"18" , 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td align="center">
		<li>输入新的密码：</li>
		</td>
		<td><%= password_field "user", "new_password",:size=>"18" , 
        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
        :onMouseOut=>"this.style.backgroundColor = '';"%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td align="center">
		<li>输入新的密码：</li>
		</td>
		<td><%= password_field "user", "confirm_password",:size=>"18" , 
        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
        :onMouseOut=>"this.style.backgroundColor = '';"%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td align="center"><%= submit_tag "确 定",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%></td>
		<%= end_form_tag %>
		<%= form_tag%>
		<td align="center"><%= submit_tag "关 闭",:class=>"btn_mouseout",
		:onmouseover=>"this.className='btn_mouseover'",
			:onmouseout=>"this.className='btn_mouseout'",
			:onmousedown=>"this.className='btn_mousedown'",
			:onmouseup=>"this.className='btn_mouseup'", 
		:onClick=>"self.close()"%></td>
		<%= end_form_tag %>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>
</fieldset>
